package cli

import (
	"wire/internal/cli/user"

	"gitee.com/go-mod/framework/cli"
	"github.com/google/wire"
)

var ProviderSet = wire.NewSet(user.NewUserCli, NewVerCli, NewCli)

func NewCli(user *user.UserCli, ver *VerCli) *cli.Cli {
	cli := cli.New()
	cli.Add("version", ver.Version())

	ug := cli.Group("user_")
	{
		ug.Add("get", user.Get())
		ug.Add("list", user.List())
	}
	return cli
}
